package homework;

public class SubtractTest extends MathTest{

    public SubtractTest(int a,int b) {
        super(a,b);
    }

    //计算功能
    @Override
    public int calculate() {
        return a - b;
    }

    //题目描绘
    @Override
    public String getQuestion() {
        return a + "-" + b + "= ? ";
    }
}
